CC=gcc
CFLAG=-Wall -Wextra -pedantic -ansi -Wmissing-declarations -Werror
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)

EXEC=send_message

all:$(OBJ)
	mkdir -p ../../bin;
	cd ../../obj && $(CC) $(CFLAG) -o ../bin/$(EXEC) $^

%.o:%.c
	mkdir -p ../../obj;
	$(CC) $(CFLAG) -c -o ../../obj/$@ $<

clean:
	rm -rf *~ \#*#